/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.click.app.service.impl;

import com.click.app.dao.StorageMaterialDao;
import com.click.app.model.StorageMaterial;
import com.click.app.service.StorageMaterialManager;
import java.util.List;

/**
 *
 * @author orgale
 */
public class StorageMaterialManagerImpl extends GenericManagerImpl<StorageMaterial, Long>
                                        implements StorageMaterialManager {
    StorageMaterialDao materialReturnDao;

    public StorageMaterialManagerImpl(StorageMaterialDao materialReturnDao) {
        super(materialReturnDao);
        this.materialReturnDao = materialReturnDao;
    }

    public List<StorageMaterial> findByIdMaterial(Long idMaterial){
        return materialReturnDao.findByIdMaterial(idMaterial);
    }
    public List<StorageMaterial> findByIdMaterialNoCero(Long idMaterial){
        return materialReturnDao.findByIdMaterialNoCero(idMaterial);
    }
}
